/*
 *  JMule - Java file sharing client
 *  Copyright (C) 2007-2009 JMule Team ( jmule@jmule.org / http://jmule.org )
 *
 *  Any parts of this program derived from other projects, or contributed
 *  by third-party developers are copyrighted by their respective authors.
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 */
package org.jmule.core.ipfilter;

/**
 * Created on Jan 7, 2010
 * @author javajox
 * @version $Revision: 1.3 $
 * Last changed by $Author: javajox $ on $Date: 2010/01/12 13:00:59 $
 */
public class TemporaryBannedIP extends BannedIP {

	private long how_long;
	private long when_banned;
	
    TemporaryBannedIP(int bannedIPAsInt, 
	        IPFilter.BannedReason bannedReason,
	        long howLong,
	        String whoBanned) {
    	
       super(bannedIPAsInt, bannedReason, whoBanned);
       this.how_long = howLong;
       this.when_banned = System.currentTimeMillis();
	}
	
    TemporaryBannedIP(int bannedIPAsInt,
    		long howLong,
    		String whoBanned) {
    	
    	super(bannedIPAsInt, whoBanned);
    	this.how_long = howLong;
    }
    
    long getHowLong() {
    	
    	return how_long;
    }
    
    long getWhenBanned() {
    	
    	return when_banned;
    }
}
